import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from './utils/request'
import { api  } from './utils/global'
import TButton from '@/components/TButton'
import Confirm from '@/components/index'
import antd from 'ant-design-vue'
import './assets/css/base.scss'
import 'ant-design-vue/dist/antd.css';
import BaiduMap from 'vue-baidu-map'

Vue.config.productionTip = false

Vue.component("TButton", TButton); //button组件，
Vue.use(antd);
Vue.use(BaiduMap, {
  ak: 'gG9UBvL6s1Y5aSNRZKUbM09cGGLQEYet'
})
// 请求函数
Vue.prototype.$axios=axios;
// 封装的请求方法，例：验证码，上传，下载
Vue.prototype.$api=api;
// 全局提示
Vue.prototype.$confirm=Confirm;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
